package top.aicey.ai.sparring.controller;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import top.aicey.ai.sparring.biz.ILoginBiz;
import top.aicey.ai.sparring.dto.model.BaseResponse;
import top.aicey.ai.sparring.dto.req.LoginRequest;
import top.aicey.ai.sparring.dto.res.LoginResponse;

@Api(tags = "登录")
@RestController
@Slf4j
public class LoginController {


    @Autowired
    private ILoginBiz loginBiz;

    @PostMapping("/login")
    public BaseResponse<LoginResponse> login(LoginRequest request){
        return loginBiz.login(request);
    }

}
